#include <stdlib.h>
#include "get_file_extension.h"

const char *get_file_extension (const char *filename, size_t len)
{
	const char *ptr;

	ptr = filename + len;
	while (--ptr > filename) {
		if (*ptr == '.') {
			return ptr + 1;
		}
	}

	return NULL;
}
